package com.jy.oms.framework.asyn.task.cluster.model;

import java.io.Serializable;

/**
 * 真实节点
 *
 * @author liuquan
 */
public class RealWorkNode implements Serializable {

    /**
     * 节点编号
     */
    private Integer nodeNum;

    /**
     * 任务节点ip
     */
    private String nodeIp;

    /**
     * 注册时间
     */
    private long registryTime;

    public static RealWorkNode create() {
        return new RealWorkNode();
    }

    public Integer getNodeNum() {
        return nodeNum;
    }

    public RealWorkNode setNodeNum(Integer nodeNum) {
        this.nodeNum = nodeNum;
        return this;
    }

    public String getNodeIp() {
        return nodeIp;
    }

    public RealWorkNode setNodeIp(String nodeIp) {
        this.nodeIp = nodeIp;
        return this;
    }

    public long getRegistryTime() {
        return registryTime;
    }

    public RealWorkNode setRegistryTime(long registryTime) {
        this.registryTime = registryTime;
        return this;
    }
}
